package Creational.Builder.example;

//导向器：隐藏产品的装配过程
// 由客户创建，并决定产品的装配过程及复杂度
//不同的装配过程一般会生产出不同的产品
public class RTFReader {

    private TextConverter textConverter;

    public RTFReader(TextConverter textConverter){
        this.textConverter = textConverter;
    }

    public Text createText(){
        textConverter.convertCharacter("111");
        textConverter.convertFontChange("222");
        textConverter.convertParagraphd();
        return textConverter.getText();
    }
}
